/**
 * 作者: chenlingzhi
 * 日期: 2024-12-25 21:07:49
 * 备注: vip等级表
 */
package com.motu.monstercity.server.game.commondata.iap;

import io.vertx.core.json.JsonObject;

public class VipModel {
	protected int id; // id
	protected int level; // vip等级
	protected int exp; // 经验
	protected String rewardItems; // 免费奖励
	protected int iapBuy; // 可购买礼包 (关联iap_gift表的id)

	public VipModel() {
	}

	public VipModel(JsonObject obj) {
		id = obj.containsKey("id") ? obj.getInteger("id") : 0;
		level = obj.containsKey("level") ? obj.getInteger("level") : 0;
		exp = obj.containsKey("exp") ? obj.getInteger("exp") : 0;
		rewardItems = obj.containsKey("reward_items") ? obj.getString("reward_items") : "";
		iapBuy = obj.containsKey("iap_buy") ? obj.getInteger("iap_buy") : 0;
	}

	public int getId() {
		return id;
	}

	public int getLevel() {
		return level;
	}

	public int getExp() {
		return exp;
	}

	public String getRewardItems() {
		return rewardItems;
	}

	public int getIapBuy() {
		return iapBuy;
	}

}
